//import _ from 'lodash';
require("!style-loader!css-loader!./app/index.css");  //loader才能直接引用css文件
//require("./index.css");//需要在webpack.config.js中配置
require('../index.html');
const man =require("./app/user.js");


const  Add = document.getElementById("root");
Add.innerHTML=man.name;
Add.innerHTML="成功加入react了";


const App=document.getElementById("app");
App.innerHTML=man.name;




// function component () {
//   var element = document.createElement('div');
//
//   /* lodash is required for the next line to work */
//   element.innerHTML ="Hello react";
//
//   return element;
// }
//
// document.body.appendChild(component());
